import React, { createContext, useState } from 'react'
import Child1 from './Child1'

export const Context = createContext()
export default function App() {
  const [money, setMoney] = useState(1000)

  return (
    <Context.Provider value={money}>
      <div>
        <h1>App- {money}</h1>
        <hr />
        <Child1></Child1>
      </div>
    </Context.Provider>
  )
}
